package cn.sunxyz.module.sys.domain;

import cn.sunxyz.common.site.domain.BaseEntity;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;

/**
 * Created by sunxyz on 2017/3/2.
 */
@DynamicUpdate
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
public class User extends BaseEntity {

    @Column(unique = true, updatable = false)
    private String loginName;

    private String nickname;

    private String password;

    private String avater;

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAvater() {
        return avater;
    }

    public void setAvater(String avater) {
        this.avater = avater;
    }
}
